import { defineStore } from 'pinia'
import { STORE } from './emnu'

export const useTestStore = defineStore(STORE.Test, {
    state: () => {
        return {
            current: 1,
            age: 18,
            name: '小刘'
        }
    },
    //类似于computed 可以帮我们去修饰我们的值
    getters: {

    },
    //可以操作异步 和 同步提交state
    actions: {
        setCurrent() {
            this.current++
        }

    }

})